﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MsForgeReboot.Framework.ViewModels
{
    using System.ComponentModel.DataAnnotations;
    using System.Web.Mvc;

    using MsForgeReboot.Framework.Entities;

    public class UserGroupEditModel
    {
        public UserGroupEditModel() {
            Author = new UserViewModel();
        }

        /// <summary>
        ///   Gets or sets the id.
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        ///   Gets or sets the body.
        /// </summary>
        [DataType(DataType.Html)]
        [Required(AllowEmptyStrings = false)]
        [AllowHtml]
        public virtual string Body { get; set; }

        /// <summary>
        ///   Gets or sets the title.
        /// </summary>
        [Required(AllowEmptyStrings = false)]
        [MaxLength(200)]
        public string Title { get; set; }

        [UIHint("UserProfile")]
        [Display(Name = "Korisnički nalog administratora grupe")]
        public UserViewModel Author { get; set; }
    }
}
